package com.lzh.others.designmode.factorymod;


import com.lzh.others.designmode.factorymod.simpleFactoryMod.BarChart;
import com.lzh.others.designmode.factorymod.simpleFactoryMod.IChart;

/**
 * @Description:
 * 2.具体工厂
 * @Author: LiuZiHao
 * @Date: 2022/11/7 14:29
 */
public class BarChartFactory implements IChartFactory {

    //3.抽象产品
    @Override
    public IChart getChart() {
        //4.具体产品
        return new BarChart();
    }
}
